package ${package}.rss.service;

import java.io.File;
import java.io.IOException;
import java.util.List;

import org.apache.commons.io.FileUtils;

import ${package}.rss.model.RssChannel;

/**
 *Read RSS source from rss-sources.xml
 * 
 * @author Ke CAI
 */
public class RssChannelServiceImpl implements IRssChannelService {

	private File rssChannelFile;

	public void setRssChannelFile(File rssChannelFile) {
		this.rssChannelFile = rssChannelFile;
	}

	public RssChannelServiceImpl() {

	}

	public List<String> loadRssChannelList() {
		List rssChannels = null;
		try {
			rssChannels = FileUtils.readLines(rssChannelFile);

		} catch (IOException e) {

		}

		return rssChannels;
	}

	public List<RssChannel> loadRssChannels() {
		// TODO Auto-generated method stub
		return null;
	}

}
